// pp4.7 test Bookshelf.java
 public class Book1
 {
    public static void main(String[] args)
  {
     Bookshelf book1;
     book1 = new Bookshelf("How to Win Friends&Influence People","Dale Carnegie","Prague,Taiwan","2015");
     
     System.out.println("Name:" + book1.getBookname());
     System.out.println("Author:" + book1.getAuthor());
     System.out.println("Press:" + book1.getPress());
     System.out.println("Copyrightdate: " + book1.getCopyrightdate());
    //Use get to represent each attribute of the book
     
     book1.setBookname("C++");
     book1.setAuthor("Java");
     book1.setPress("prisident");
     book1.setCopyrightdate("Besti");
   //Use set to change the attribute of the presious book
  
    System.out.println("GG:" + book1.toString());
  }
}

